import java.io.Console;

/**
 * @author : cww
 * @date : 2021/1/5 23:06
 */
public class Rectangle extends Shape{
    private String name;
    public Rectangle(){
        name = "长方形";
    }

    @Override
    public void add(Shape shape) {
        throw new UnsupportedOperationException();
    }

    @Override
    public void remove(Shape shape) {
        throw new UnsupportedOperationException();
    }

    @Override
    public void draw() {
        System.out.println("画了一个"+name);
    }
}
